﻿using EcoSystem.Enums;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Volo.Abp.ObjectExtending;

namespace EcoSystem
{

    /// <summary>
    /// 添加或更新的DTO
    /// </summary>
    public class CreateOrUpdateTakeConfigDto: ExtensibleObject
    {
        protected CreateOrUpdateTakeConfigDto()
        : this(true)
        {

        }

        protected CreateOrUpdateTakeConfigDto(bool setDefaultsForExtraProperties)
            : base(setDefaultsForExtraProperties)
        {

        }

        /// <summary>
        /// 业务编码
        /// </summary>
        public string Code { get; set; }

        /// <summary>
        /// 业务名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 规则号码预览
        /// </summary>
        public string Preview { get; set; }

        /// <summary>
        /// 启用状态
        /// </summary>
        public bool Status { get; set; }

        /// <summary>
        /// 备注说明
        /// </summary>
        public string Remarks { get; set; }

        /// <summary>
        /// 取号规则项
        /// </summary>
        public List<TakeRuleItem> RuleItems { get; set; }

    }
}
